<?php
//Everything you need to know about a post
class Post {
	public $m_postId="";
	public $m_postHeader = "";
	public $m_postContent = "";
	public $m_categoryId = "";
	public $m_categoryName = "";
	public $m_parentId = "";
	
	// This is a post object. It makes it really easy to handle the posts. 
	public static function Create ($a_postId, $a_postHeader, $a_postContent, $a_categoryId, $a_categoryName, $a_parentId){
		$post = new Post();
		
		$post->m_postId = $a_postId;
		$post->m_postHeader = $a_postHeader;
		$post->m_postContent = $a_postContent;
		$post->m_categoryId = $a_categoryId;
		$post->m_categoryName = $a_categoryName;
		$post->m_parentId = $a_parentId;
	
		return $post;
	} 	
}